<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 屏蔽tomcat 自带的 EL表达式 -->
<%@ page isELIgnored="false" %>  
<c:set var="ctx" value="${r'${pageContext.request.contextPath}'}"/>
<html>
<head>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <script type="text/javascript" src="${r'${ctx}'}/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="${r'${ctx}'}/layer/layer.js"></script>
    <script type="text/javascript" src="${r'${ctx}'}/js/ajax.js"></script>
    <script type="text/javascript" src="${r'${ctx}'}/js/form.js"></script>
    <script type="text/javascript" src="${r'${ctx}'}/bootstrap/bootstrap.js"></script>
    <script type="text/javascript" src="${r'${ctx}'}/bootstrap/bootstrap-select.js"></script>
    <script type="text/javascript" src="${r'${ctx}'}/bootstrap/bootstrap-select-zh_CN.js"></script>
    <script type="text/javascript" src="${r'${ctx}'}/nice-validator/jquery.validator.js?local=zh-CN"></script>
    <script type="text/javascript" src="${r'${ctx}'}/js/${model_name_entity}/${model_name_entity}Edit.js"></script>
    <link rel="stylesheet" type="text/css" href="${r'${ctx}'}/bootstrap/bootstrap.css" media="all">
    <link rel="stylesheet" type="text/css" href="${r'${ctx}'}/bootstrap/bootstrap-select.css" media="all">
    <link rel="stylesheet" type="text/css" href="${r'${ctx}'}/larry/css/fonts/font-awesome.min.css" media="all">
    <title>${model_name_entity}信息</title>
    <script type="text/javascript">
    	 var ctx = "${r'${ctx}'}";
    </script>
</head>
<body style="padding-top: 8px;">
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
						
					<form role="form" id="${model_name_entity}form" class="form-horizontal " data-validator-option="{theme:'yellow_right', timely:3, stopOnError:false,focusCleanup:true,invalidClass: 'has-error'}">
						  
						  <#list fieldList as being>
						  		<#if being_index%2 ==0 > 
							  		 <#if being_has_next >
							  		 		<div class="form-group">
											    <label for="${being}" class="col-sm-2 control-label">${being}</label>
											    <div class="col-sm-3"><input type="text" class="form-control" id="${being}" name="${being}"  data-rule="required" autocomplete="off"></div>
						  					
							  		 </#if>
							  		 <#if !being_has_next >
							  		 		<div class="form-group">
											    <label for="${being}" class="col-sm-2 control-label">${being}</label>
											    <div class="col-sm-3"><input type="text" class="form-control" id="${being}" name="${being}"  data-rule="required" autocomplete="off"></div>
											</div>
							  		 </#if>
							  	</#if>
							  	<#if being_index%2 !=0 > 
							  		 			<label for="${being}" class="col-sm-2 control-label">${being}</label>
											    <div class="col-sm-3"><input type="text" class="form-control" id="${being}" name="${being}"  data-rule="required" autocomplete="off"></div>
						  					</div>
							  	</#if>
						  		
						  </#list>

						 <div class="form-group">
							<div class="col-sm-offset-5 col-sm-6">
								<button id="btnsubmit" type="submit" class="btn  btn-green"><i class="fa fa-floppy-o" aria-hidden="true"></i> 保存</button>
							</div>
						</div>
						<input type="hidden" name ="version">
						<input type="hidden" name ="${model_key}">
				 </form>
			</div>
		</div>
	</div>
</body>
</html>
